package cn.monkey.state.disruptor;

import com.lmax.disruptor.*;

public class NOOPWaitStrategy implements WaitStrategy {
    @Override
    public long waitFor(long sequence, Sequence cursor, Sequence dependentSequence, SequenceBarrier barrier) throws AlertException, InterruptedException, TimeoutException {
        return dependentSequence.get();
    }

    @Override
    public void signalAllWhenBlocking() {

    }
}
